import request from '@/utils/request'

// 查询易制毒-法人列表
export function listCorporation(query) {
  return request({
    url: '/access/corporation/list',
    method: 'get',
    params: query
  })
}

// 查询易制毒-法人详细
export function getCorporation(corporationId) {
  return request({
    url: '/access/corporation/' + corporationId,
    method: 'get'
  })
}

// 新增易制毒-法人
export function addCorporation(data) {
  return request({
    url: '/access/corporation',
    method: 'post',
    data: data
  })
}

// 修改易制毒-法人
export function updateCorporation(data) {
  return request({
    url: '/access/corporation',
    method: 'put',
    data: data
  })
}

// 删除易制毒-法人
export function delCorporation(corporationId) {
  return request({
    url: '/access/corporation/' + corporationId,
    method: 'delete'
  })
}
